up: embedded systems - bacnet  
embedded systems - bacnet - tagWhat links here?
|--7--|--6--|--5--|--4--|--3--|--2--|--1--|--0--|
|      tag number       |class|   len/val/type  |
|-----|-----|-----|-----|-----|-----|-----|-----|


Tag numbers 0 - 14 are contained in bits 7 through 4.
A tag number of 15 indicates an extended tag is held in the following byte.

The tag length is contained in bits 2 through 0.
A length of 5 indicates and extended length is held in the following byte, or the byte following the extended tag number, if one exists.
If the extended length contains 254, the extended length is contained in the following two bytes.
If the extended length contains 255, the extended length is contained in the following four bytes.
(who dreamed this stuff up?)

class = 0 => application tag
class = 1 => context specific tag

If the tag is an application tag, then the tag number indicates the type, shown below, and the meaning is position dependent in the context of the whole message.
Tag Types
0Null
1Boolean
2Unsigned Integer
3Signed Integer
4Real (ANSI 754 Floating Point)
5Double (ANSI 754 Double)
6Octet String
7Character String
8Bit String
9Enumerated
10Date
11Time
12BACnet Object Identifier
13Reserved
14Reserved
15Reserved
embedded systems - bacnet - tag
filename:embedded systems - bacnet - tag
filename:embedded%20systems%20%2D%20bacnet%20%2D%20tag
last edit:March 11 2016 20:39:38 (2977 days ago)
ct = 1714984080.000000 = May 06 2024 04:28:00
ft = 1457746778.000000 = March 11 2016 20:39:38
dt = 257237302.000000